Convenience method for creating an appropriately typed pair.
a Pair that is templatized with the types of a and b
the first object in the Pair
the second object in the pair